﻿using RayDen.Library.Entity.Scene;
using RayDen.Library.Entity.SceneGraph;

namespace RayDen.Optix.Engine.Scene.Builders
{
    public class MaterialsBuilder : SceneBuilderComponentBase<SceneMaterialDataNode>
    {
        protected override void VisitInternal(SceneMaterialDataNode node)
        {
            var mi = (MaterialInfo)node.GetDataItem();
            this.Builder.Materials.Add(mi);
        }
    }
}